home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TGCBOR20.ARJ / INTROPAK.COM / ROTSTACK.C < prev    next >
Text File  |  1991-04-06  |  802b  |  42 lines

  1.  
  2.   /* -- Program to illustrate moving a one frame onto the top of another  */
  3.   /* -- frame.  */
  4.  
  5. #include "teglsys.h"
  6.  
  7. imagestkptr  fs;
  8.  
  9.  
  10.  
  11. void main(void)
  12. {
  13.  
  14.    easytegl();
  15.    easyout();
  16.  
  17.      /* -- create the first frame  */
  18.  
  19.    pushimage(1,1,100,100);
  20.    shadowbox(1,1,100,100);
  21.    fs = stackptr;   /* -- stackptr always has the most recent frame  */
  22.  
  23.      /* -- then create the second frame  */
  24.    pushimage(50,50,150,150);
  25.    shadowbox(50,50,150,150);
  26.  
  27.      /* -- since we haven't gone to the supervisor yet we must  */
  28.      /* -- specifically display the mouse.  */
  29.    showmouse();
  30.      /* -- wait for a mouse click  */
  31.    while (mouse_buttons == 0) ;
  32.  
  33.      /* -- then move them around.  */
  34.    rotatestackimage(fs,stackptr);
  35.  
  36.  
  37.    teglsupervisor(); 
  38. }
  39.  
  40.  
  41.  
  42.